package com.ms.p2p.provider.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.ms.p2p.entity.system.PayMethod;
import com.ms.p2p.provider.PayMethodProvider;
import com.ms.p2p.service.impl.PayMethodServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * Created by daimajia on 2015/4/19 添加dubbo接口.
 */
@Service
public class PayMethodProviderImpl implements PayMethodProvider {
    @Autowired
    PayMethodServiceImpl payMethodService;

    public int insert(PayMethod map) {
        return payMethodService.insert(map);
    }

    public int update(PayMethod map) {
        return payMethodService.update(map);
    }

    public PayMethod findById(String id) {
        return payMethodService.findById(id);
    }

    public List<PayMethod> find(Integer i) {
        return payMethodService.find(i);
    }

    public List<PayMethod> findOnline() {
        return payMethodService.findOnline();
    }
}
